FROM nginx

RUN rm -rf /usr/share/nginx/html/*
RUN rm -rf /etc/nginx/conf.d/*

COPY dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/

COPY docker-entrypoint.sh /usr/local/bin/

ENTRYPOINT ["sh","/usr/local/bin/docker-entrypoint.sh"]
